Inheritance diagram for Exponent::GUI::Controls::CADSREditor:

Definition at line 34 of file CADSREditor.hpp.
enum Exponent::GUI::Controls::CADSREditor::EADSRHandles [protected] |
Enumeration of the (internal) handles.
Definition at line 120 of file CADSREditor.hpp.
| Exponent::GUI::Controls::CADSREditor::CADSREditor | ( | IControlRoot * | root, | |
| const long | uniqueId, | |||
| const CRect & | area, | |||
| IActionListener * | listener = NULL | |||
| ) |
Construction
| root | The root control that this control is being added to | |
| uniqueId | The unique Identifier of this control or CCONTROL_NO_ID_REQUIRED if no id is required | |
| area | The area of this control relative to the root controls top left | |
| listener | The action listener |
| virtual Exponent::GUI::Controls::CADSREditor::~CADSREditor | ( | ) | [virtual] |
Destruction
| void Exponent::GUI::Controls::CADSREditor::constructHandlePositions | ( | ) | [protected] |
Construct the handle positions
| virtual void Exponent::GUI::Controls::CADSREditor::drawControl | ( | CGraphics & | graphics | ) | [virtual] |
Draw the control
| graphics | The graphics context |
Reimplemented from Exponent::GUI::Controls::CControl.
| virtual double Exponent::GUI::Controls::CADSREditor::getValue | ( | const long | index | ) | [inline, virtual] |
Get a value
| index | The index, 0=A, 1=D, 2=S, 3=R |
| double | The scaled value in range 0 - 1 |
Definition at line 101 of file CADSREditor.hpp.
References m_values.
| virtual void Exponent::GUI::Controls::CADSREditor::handleLeftButtonDown | ( | CMouseEvent & | event | ) | [virtual] |
Handle left button being clicked
| event | The event to handle |
Reimplemented from Exponent::GUI::Controls::CControl.
| virtual void Exponent::GUI::Controls::CADSREditor::handleLeftButtonUp | ( | CMouseEvent & | event | ) | [virtual] |
Handle left button being released
| event | The event to handle |
Reimplemented from Exponent::GUI::Controls::CControl.
| virtual void Exponent::GUI::Controls::CADSREditor::handleMouseLeavingArea | ( | CMouseEvent & | event | ) | [virtual] |
Handle a mouse leaving the root area
| event | The event to handle |
Reimplemented from Exponent::GUI::Controls::CControl.
| virtual void Exponent::GUI::Controls::CADSREditor::handleMouseMovement | ( | CMouseEvent & | event | ) | [virtual] |
Handle the mouse movement
| event | The event to handle |
Reimplemented from Exponent::GUI::Controls::CControl.
| void Exponent::GUI::Controls::CADSREditor::moveAttack | ( | CMouseEvent & | event | ) | [protected] |
Move attack
| event | The mouse event to move the attack using |
| void Exponent::GUI::Controls::CADSREditor::moveDecay | ( | CMouseEvent & | event | ) | [protected] |
Move decay
| event | The mouse event to move the decay using |
| void Exponent::GUI::Controls::CADSREditor::moveRelease | ( | CMouseEvent & | event | ) | [protected] |
Move the release
| event | The mouse event to move the release using |
| void Exponent::GUI::Controls::CADSREditor::moveSustain | ( | CMouseEvent & | event | ) | [protected] |
Move the sustain
| event | The mouse event to move the sustain using |
| virtual void Exponent::GUI::Controls::CADSREditor::setValue | ( | const long | index, | |
| const double | value | |||
| ) | [virtual] |
Set the value at a specific index (ADSR)
| index | The index, 0=A, 1=D, 2=S, 3=R | |
| value | The normalised value to set (0 - 1 range) |
const long Exponent::GUI::Controls::CADSREditor::CADSR_EDITOR_HANDLE_HALF_SIZE = 4 [static, protected] |
Size of square offset
Definition at line 136 of file CADSREditor.hpp.
const long Exponent::GUI::Controls::CADSREditor::CADSR_EDITOR_HANDLE_SIZE = 8 [static, protected] |
Size of a handle
Definition at line 135 of file CADSREditor.hpp.
const long Exponent::GUI::Controls::CADSREditor::CADSR_EDITOR_WINDOW_OFFSET = 4 [static, protected] |
Offset from the edges
Definition at line 134 of file CADSREditor.hpp.
CPolygon Exponent::GUI::Controls::CADSREditor::m_envelopePolygon [protected] |
The actual envelope curve
Definition at line 178 of file CADSREditor.hpp.
CRect Exponent::GUI::Controls::CADSREditor::m_handles[e_numberOfHandles] [protected] |
The handles that the user can grab
Definition at line 179 of file CADSREditor.hpp.
long Exponent::GUI::Controls::CADSREditor::m_innerHeight [protected] |
Height inside
Definition at line 175 of file CADSREditor.hpp.
long Exponent::GUI::Controls::CADSREditor::m_innerWidth [protected] |
Width inside
Definition at line 176 of file CADSREditor.hpp.
bool Exponent::GUI::Controls::CADSREditor::m_mouseDown [protected] |
Is the mouse down?
Definition at line 172 of file CADSREditor.hpp.
bool Exponent::GUI::Controls::CADSREditor::m_mouseIsOver [protected] |
Is the mouse over our area?
Definition at line 171 of file CADSREditor.hpp.
long Exponent::GUI::Controls::CADSREditor::m_selectedPoint [protected] |
What are we mousing with (-1 if nothing)
Definition at line 173 of file CADSREditor.hpp.
long Exponent::GUI::Controls::CADSREditor::m_sizeOfQuarter [protected] |
How big is 1/4 of the available space
Definition at line 174 of file CADSREditor.hpp.
double Exponent::GUI::Controls::CADSREditor::m_values[4] [protected] |